.class public Lcom/esfile/screen/recorder/picture/newpicker/g;
.super Ljava/lang/Object;
.source "NewMediaPicker.java"


# instance fields
.field private a:Landroid/content/Context;

.field private b:I

.field private c:I

.field private d:I

.field private e:I

.field private f:Z

.field private g:Z

.field private h:Lcom/esfile/screen/recorder/picture/newpicker/i;

.field private i:Lcom/esfile/screen/recorder/picture/newpicker/h;

.field private j:Lcom/esfile/screen/recorder/picture/newpicker/f;


# direct methods
.method public constructor <init>(Landroid/content/Context;)V
    .locals 0

    .line 1
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 2
    iput-object p1, p0, Lcom/esfile/screen/recorder/picture/newpicker/g;->a:Landroid/content/Context;

    const/4 p1, -0x1

    .line 3
    iput p1, p0, Lcom/esfile/screen/recorder/picture/newpicker/g;->b:I

    .line 4
    iput p1, p0, Lcom/esfile/screen/recorder/picture/newpicker/g;->d:I

    .line 5
    iput p1, p0, Lcom/esfile/screen/recorder/picture/newpicker/g;->e:I

    .line 6
    iput p1, p0, Lcom/esfile/screen/recorder/picture/newpicker/g;->c:I

    const/4 p1, 0x1

    .line 7
    iput-boolean p1, p0, Lcom/esfile/screen/recorder/picture/newpicker/g;->f:Z

    const/4 p1, 0x0

    .line 8
    iput-boolean p1, p0, Lcom/esfile/screen/recorder/picture/newpicker/g;->g:Z

    return-void
.end method


# virtual methods
.method public a(I)Lcom/esfile/screen/recorder/picture/newpicker/g;
    .locals 0

    .line 1
    iput p1, p0, Lcom/esfile/screen/recorder/picture/newpicker/g;->b:I

    return-object p0
.end method

.method public a(Lcom/esfile/screen/recorder/picture/newpicker/f;)Lcom/esfile/screen/recorder/picture/newpicker/g;
    .locals 0

    .line 4
    iput-object p1, p0, Lcom/esfile/screen/recorder/picture/newpicker/g;->j:Lcom/esfile/screen/recorder/picture/newpicker/f;

    return-object p0
.end method

.method public a(Lcom/esfile/screen/recorder/picture/newpicker/h;)Lcom/esfile/screen/recorder/picture/newpicker/g;
    .locals 0

    .line 5
    iput-object p1, p0, Lcom/esfile/screen/recorder/picture/newpicker/g;->i:Lcom/esfile/screen/recorder/picture/newpicker/h;

    return-object p0
.end method

.method public a(Z)Lcom/esfile/screen/recorder/picture/newpicker/g;
    .locals 1

    xor-int/lit8 v0, p1, 0x1

    .line 2
    iput-boolean v0, p0, Lcom/esfile/screen/recorder/picture/newpicker/g;->f:Z

    .line 3
    iput-boolean p1, p0, Lcom/esfile/screen/recorder/picture/newpicker/g;->g:Z

    return-object p0
.end method

.method public a()V
    .locals 4

    .line 6
    new-instance v0, Landroid/content/Intent;

    iget-object v1, p0, Lcom/esfile/screen/recorder/picture/newpicker/g;->a:Landroid/content/Context;

    const-class v2, Lcom/esfile/screen/recorder/picture/newpicker/NewMediaPickerActivity;

    invoke-direct {v0, v1, v2}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    .line 7
    iget-object v1, p0, Lcom/esfile/screen/recorder/picture/newpicker/g;->a:Landroid/content/Context;

    instance-of v1, v1, Landroid/app/Activity;

    if-nez v1, :cond_0

    const/high16 v1, 0x10000000

    .line 8
    invoke-virtual {v0, v1}, Landroid/content/Intent;->addFlags(I)Landroid/content/Intent;

    .line 9
    :cond_0
    iget v1, p0, Lcom/esfile/screen/recorder/picture/newpicker/g;->b:I

    const-string v2, "data_type"

    invoke-virtual {v0, v2, v1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;

    .line 10
    iget v1, p0, Lcom/esfile/screen/recorder/picture/newpicker/g;->d:I

    const/4 v2, -0x1

    if-eq v1, v2, :cond_1

    const-string v3, "min_count"

    .line 11
    invoke-virtual {v0, v3, v1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;

    .line 12
    :cond_1
    iget v1, p0, Lcom/esfile/screen/recorder/picture/newpicker/g;->e:I

    if-eq v1, v2, :cond_2

    const-string v2, "max_count"

    .line 13
    invoke-virtual {v0, v2, v1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;

    .line 14
    :cond_2
    iget v1, p0, Lcom/esfile/screen/recorder/picture/newpicker/g;->c:I

    const-string v2, "function"

    .line 15
    invoke-virtual {v0, v2, v1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;

    .line 16
    iget-boolean v1, p0, Lcom/esfile/screen/recorder/picture/newpicker/g;->f:Z

    const-string v2, "single_select"

    invoke-virtual {v0, v2, v1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Z)Landroid/content/Intent;

    .line 17
    iget-boolean v1, p0, Lcom/esfile/screen/recorder/picture/newpicker/g;->g:Z

    const-string v2, "multi_select"

    invoke-virtual {v0, v2, v1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Z)Landroid/content/Intent;

    .line 18
    iget-object v1, p0, Lcom/esfile/screen/recorder/picture/newpicker/g;->h:Lcom/esfile/screen/recorder/picture/newpicker/i;

    if-eqz v1, :cond_3

    .line 19
    invoke-static {v1}, Lcom/esfile/screen/recorder/picture/newpicker/NewMediaPickerActivity;->a(Lcom/esfile/screen/recorder/picture/newpicker/i;)V

    .line 20
    :cond_3
    iget-object v1, p0, Lcom/esfile/screen/recorder/picture/newpicker/g;->i:Lcom/esfile/screen/recorder/picture/newpicker/h;

    if-eqz v1, :cond_4

    .line 21
    invoke-static {v1}, Lcom/esfile/screen/recorder/picture/newpicker/NewMediaPickerActivity;->a(Lcom/esfile/screen/recorder/picture/newpicker/h;)V

    .line 22
    :cond_4
    iget-object v1, p0, Lcom/esfile/screen/recorder/picture/newpicker/g;->j:Lcom/esfile/screen/recorder/picture/newpicker/f;

    if-eqz v1, :cond_5

    .line 23
    invoke-static {v1}, Lcom/esfile/screen/recorder/picture/newpicker/NewMediaPickerActivity;->a(Lcom/esfile/screen/recorder/picture/newpicker/f;)V

    .line 24
    :cond_5
    iget-object v1, p0, Lcom/esfile/screen/recorder/picture/newpicker/g;->a:Landroid/content/Context;

    invoke-virtual {v1, v0}, Landroid/content/Context;->startActivity(Landroid/content/Intent;)V

    return-void
.end method

.method public b(I)Lcom/esfile/screen/recorder/picture/newpicker/g;
    .locals 2

    .line 1
    iput p1, p0, Lcom/esfile/screen/recorder/picture/newpicker/g;->c:I

    const/4 v0, 0x2

    if-ne p1, v0, :cond_0

    .line 2
    iget p1, p0, Lcom/esfile/screen/recorder/picture/newpicker/g;->d:I

    const/4 v1, -0x1

    if-ne p1, v1, :cond_0

    .line 3
    iput v0, p0, Lcom/esfile/screen/recorder/picture/newpicker/g;->d:I

    :cond_0
    return-object p0
.end method

.method public c(I)Lcom/esfile/screen/recorder/picture/newpicker/g;
    .locals 0

    .line 1
    iput p1, p0, Lcom/esfile/screen/recorder/picture/newpicker/g;->d:I

    return-object p0
.end method
